import request from '@/utils/request'
//用户信息
export const getuseraddressapi = () => request.get('ecm-microservice-biz/ecm/home/overview/data/lal')
// 基础信息
export const getjichuxinapi = () => request.get('ecm-microservice-biz/ecm/home/overview/data/base')
// 同环比分析
export const gettonghuanbiapi = () => request.get('ecm-microservice-biz/ecm/home/overview/data/comparison/line')
// 获取用电趋势
export const getyongdianqushiapi = params => request.get('ecm-microservice-biz/ecm/home/overview/data/load/line', { params })
// 用电量排名
export const getyongliangpaiapi = params => request.get('ecm-microservice-biz/ecm/home/overview/data/usage/line', { params })
// 用户用电构成
export const getyonghuyongdianapi = () => request.get('ecm-microservice-biz/ecm/home/overview/data/users/pie')
// 月份用电构成
export const getmonthgouchengapi = () => request.get('ecm-microservice-biz/ecm/home/overview/data/usage/month/pie')
// 左侧树
export const getchecktreeapi = () => request.get('pio-microservice-biz/pio/ect/userLoadSuperposition/tree')
// 负荷曲线
export const geyfuhequxianapi = params => request.get('pio-microservice-biz/pio/ect/userLoadSuperposition/line', { params })
// 负荷列表
export const getfuheliebiaoapi = params => request.get('pio-microservice-biz/pio/ect/userLoadSuperposition/list', { params })
// 用能异常
export const getyongnnegyiapi=()=>request.get('/ecm-microservice-biz/ecm/home/overview/energy/usage/exception')